﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.Xpo;
namespace ChuanPlus.DAO
{
    public class SupplierDAO
    {
        public static List<Supplier> GetAllSupplier()
        {
            Session session = new Session();
            XPQuery<Supplier> suppliers = new XPQuery<Supplier>(session);
            var list = from s in suppliers                       
                       select s;
            List<Supplier> arr = new List<Supplier>(list.AsEnumerable<Supplier>());
            return arr;     

        }
        public static Supplier GetSupplier(int SupplierID)
        {
            return null;
        }
    }
}
